package com.lg.erp.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lg.erp.entity.SMenu;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ligen
 * @since 2021-04-12
 */
@Component
public interface MenuMapper extends BaseMapper<SMenu> {

    List<SMenu> selectFunctionsByUsername(String username);

    List<SMenu> selectAllFunctions();

    List<SMenu> selectFunctionsByRoleId(String id);

    IPage<SMenu> selectFunctionsByPage(Page<SMenu> page);
}
